package UnOfficeDeTourisme;

/**
 * Interface definition : SGCartes
 * 
 * @author OpenORB Compiler
 */
public class SGCartesPOATie extends SGCartesPOA
{

    //
    // Private reference to implementation object
    //
    private SGCartesOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public SGCartesPOATie(SGCartesOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public SGCartesPOATie(SGCartesOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public SGCartesOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(SGCartesOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Read accessor for listeDesCartes attribute
     */
    public UnOfficeDeTourisme.Carte[] listeDesCartes()
    {
        return _tie.listeDesCartes();
    }

    /**
     * Operation creerCarte
     */
    public void creerCarte(UnOfficeDeTourisme.Prestation p)
    {
        _tie.creerCarte( p);
    }

    /**
     * Operation getEntrees
     */
    public UnOfficeDeTourisme.Entree[] getEntrees(int idVisite)
        throws UnOfficeDeTourisme.ListeVideException
    {
        return _tie.getEntrees( idVisite);
    }

}
